package org.mspring.mlog.dao;

import java.util.List;

import org.mspring.mlog.entity.Attachment;
import org.mspring.platform.dao.hibernate.IGenericDao;

/**
 *
 * @author Gao Youbo
 * @since 2014-01-05
 */
public interface AttachmentDao extends IGenericDao<Attachment, Long> {

    public List<Attachment> listByForeign(String foreignType, long foreignKey);

    public void deleteByForeign(String foreignType, long foreignKey);

}
